package com.zuo_book.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 项目阶段实体类
 */
@Data
@TableName("sys_project_stage")
public class SysProjectStage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 阶段ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 项目ID
     */
    private Long projectId;

    /**
     * 阶段名称
     */
    private String stageName;

    /**
     * 权重比例
     */
    private Integer weight;

    /**
     * 负责人ID
     */
    private Long ownerId;

    /**
     * 完成率
     */
    private Integer completionRate;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 删除标志
     */
    @TableLogic
    private String delFlag;

    private String power;
}